package com.stark.wechat.service.material.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 新增临时素材返回体
 *
 * @author <a href="mailto:mengbin@hotmail.com">Ben</a>
 * @version 1.0.0
 * @see <a href="https://developers.weixin.qq.com/doc/service/api/material/temporary/api_uploadtempmedia.html#_5-%E4%BB%A3%E7%A0%81%E7%A4%BA%E4%BE%8B">素材管理 / 临时素材 / 新增临时素材</a>
 * @since 2024/5/24
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class UploadTempMediaResponsePayload implements Serializable {

    private static final long serialVersionUID = 7893149259093969709L;

    /**
     * 媒体文件类型
     */
    private MaterialType type;

    /**
     * 媒体文件上传后，获取标识
     */
    @JsonProperty("media_id")
    private String mediaId;

    /**
     * 媒体文件上传时间戳
     */
    @JsonProperty("created_at")
    private Long createdAt;

}
